/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a2540; /* Dark Blue */
    --secondary-color: #00d4ff; /* Bright Blue Accent */
    --accent-color: #24b47e; /* Green for success/buttons */
    --text-color: #333;
    --light-gray-color: #f4f7fa;
    --background-color: #ffffff;
    --border-color: #e6e6e6;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
p { margin-bottom: 1rem; }

/* --- General Animations --- */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Header & Navigation --- */
.main-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.main-nav ul {
    list-style-type: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
}

/* --- Hero Section & Calculator --- */
.hero-section {
    background-color: var(--light-gray-color);
    text-align: center;
    padding: 80px 0;
}

.hero-section .subtitle {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}

.calculator-wrapper {
    background: var(--background-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.salary-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.btn-calculate {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 48px; /* Align with inputs */
}

.btn-calculate:hover {
    background-color: #1e9a6b;
}

.results-container {
    margin-top: 40px;
    text-align: left;
    display: none; /* Initially hidden */
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 2px solid var(--secondary-color);
    padding-top: 20px;
}

.results-item {
    background-color: var(--light-gray-color);
    padding: 15px;
    border-radius: 5px;
}
.results-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.results-item p {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.results-net {
    grid-column: 1 / -1;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 20px;
}

.results-net h3, .results-net p {
    color: #fff;
}
.results-net p {
    font-size: 2.5rem;
    font-weight: 700;
}


/* --- Features Section --- */
.features-section {
    padding: 80px 0;
}

.features-section .container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.feature {
    text-align: center;
    max-width: 300px;
}

.feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
}

/* --- About Section --- */
.about-section {
    background-color: var(--light-gray-color);
    padding: 80px 0;
    text-align: center;
}
.about-section p {
    max-width: 700px;
    margin: 0 auto;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-content h3, .footer-content h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2a4365;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* --- Legal Page --- */
.legal-page {
    padding: 60px 0;
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h1 {
    margin-bottom: 2rem;
}
.legal-page h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

/* --- Responsive Design --- */
@media(max-width: 900px) {
    .salary-form {
        grid-template-columns: 1fr;
    }
    .features-section .container {
        flex-direction: column;
        align-items: center;
    }
}

@media(max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .main-header .container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 1rem;
        padding: 0;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links ul {
        padding: 0;
    }
    .footer-social {
        margin-top: 1rem;
    }
}