/* Base Styles & Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #5d3fd3;
    --primary-dark: #4c32ac;
    --primary-light: #e8e3fc;
    --accent-color: #ff6b6b;
    --accent-dark: #ff5252;
    --gradient-start: #5d3fd3;
    --gradient-end: #8667ff;
    --background-color: #f8f9fc;
    --card-color: #ffffff;
    --text-dark: #1e1b4b;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-xlight: #9ca3af;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(93, 63, 211, 0.12);
    --shadow-lg: 0 10px 25px rgba(93, 63, 211, 0.15);
    --shadow-xl: 0 15px 35px rgba(93, 63, 211, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

.container {
    background-color: var(--card-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(93, 63, 211, 0.08);
}

/* Header Styles */
header {
    background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(93, 63, 211, 0.3);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="rgba(255,255,255,0.1)" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 1;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 i {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 10px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Section */
.calculator-container {
    padding: 40px 30px;
    position: relative;
}

.tabs {
    display: flex;
    margin-bottom: 35px;
    gap: 15px;
    position: relative;
    justify-content: center;
}

.tab-btn {
    padding: 14px 24px;
    background: var(--background-color);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-medium);
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
    font-weight: 500;
    min-width: 130px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.tab-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-content {
    animation: fadeIn 0.5s ease-in-out;
    max-width: 700px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input Styles */
.input-container {
    margin-bottom: 35px;
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(93, 63, 211, 0.1);
}

.input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
}

label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

input[type="date"], 
input[type="number"],
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
    margin-bottom: 20px;
    background-color: white;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

input[type="date"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(93, 63, 211, 0.15);
    transform: translateY(-2px);
}

.time-inputs {
    margin-bottom: 25px;
}

.time-field-group {
    display: flex;
    gap: 15px;
}

.time-field {
    width: 120px !important;
}

/* Button Styles */
.primary-btn {
    background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.8s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.primary-btn:hover::after {
    transform: translateX(100%);
}

.primary-btn:active {
    transform: translateY(-1px);
}

.primary-btn i {
    font-size: 20px;
}

/* Result Styles */
.result {
    background-color: white;
    padding: 35px 30px;
    border-radius: var(--radius-md);
    margin-top: 30px;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
}

.result h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.result h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
}

.result p {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.age-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 30px 0;
    gap: 20px;
}

.age-detail-item {
    padding: 25px 20px;
    min-width: 130px;
    text-align: center;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(93, 63, 211, 0.08);
    position: relative;
    overflow: hidden;
}

.age-detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.age-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.age-detail-item:hover::before {
    opacity: 1;
}

.age-detail-item span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    background: linear-gradient(120deg, var(--primary-color), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.age-detail-item p {
    font-size: 1rem;
    color: var(--text-medium);
    margin: 0;
    font-weight: 500;
}

/* Comparison Tab */
.comparison-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.comparison-column {
    flex: 1;
    min-width: 250px;
    padding: 25px;
    background-color: var(--background-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(93, 63, 211, 0.08);
    position: relative;
    overflow: hidden;
}

.comparison-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.comparison-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Features Section */
.features-section {
    padding: 60px 30px;
    background: linear-gradient(180deg, var(--background-color) 0%, rgba(248, 249, 252, 0.5) 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(93, 63, 211, 0) 0%, 
        rgba(93, 63, 211, 0.3) 50%, 
        rgba(93, 63, 211, 0) 100%);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.features-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 40px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(93, 63, 211, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover i,
.feature-card:hover h3,
.feature-card:hover p {
    color: white;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: color var(--transition-normal);
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: color var(--transition-normal);
}

.feature-card p {
    color: var(--text-medium);
    font-size: 1rem;
    transition: color var(--transition-normal);
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid #eee;
}

footer a {
    color: #4285f4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close-btn:hover {
    color: #333;
}

.policy-content {
    margin-top: 20px;
    color: #555;
    line-height: 1.7;
}

.policy-content p {
    margin-bottom: 15px;
}

/* Error Styles */
.error {
    color: #e53935;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.3);
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
        box-shadow: none;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .comparison-container {
        flex-direction: column;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .calculator-container,
    .features-section {
        padding: 15px;
    }
    
    .age-details {
        flex-direction: column;
    }
    
    .age-detail-item {
        width: 100%;
    }
    
    .feature-card i {
        font-size: 24px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .container {
        box-shadow: none;
    }
    
    .tabs, 
    .input-container, 
    .features-section, 
    footer,
    .primary-btn {
        display: none;
    }
    
    .result {
        background: none;
        padding: 0;
    }
}

/* Blog Section */
.blog-section {
    padding: 60px 30px;
    background-color: white;
    position: relative;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(93, 63, 211, 0) 0%, 
        rgba(93, 63, 211, 0.3) 50%, 
        rgba(93, 63, 211, 0) 100%);
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.blog-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-post {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(93, 63, 211, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.blog-post h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.blog-post h3 i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 3px;
}

.blog-meta {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post p {
    margin-bottom: 20px;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

.blog-post ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post li {
    margin-bottom: 8px;
    color: var(--text-medium);
    position: relative;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all var(--transition-normal);
    margin-top: auto;
    font-size: 0.95rem;
}

.read-more i {
    transition: transform var(--transition-normal);
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover i {
    transform: translateX(5px);
}

.article-content {
    max-width: 800px;
}

.article-body {
    padding: 20px 0;
}

.article-body h3 {
    margin: 25px 0 15px;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
}

.article-body h4 {
    margin: 20px 0 12px;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.article-body ul, .article-body ol {
    margin: 15px 0 20px 20px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 60px 30px;
    background: linear-gradient(0deg, rgba(248, 249, 252, 0.5) 0%, var(--background-color) 100%);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(93, 63, 211, 0) 0%, 
        rgba(93, 63, 211, 0.3) 50%, 
        rgba(93, 63, 211, 0) 100%);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(93, 63, 211, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.faq-question {
    padding: 22px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: all var(--transition-normal);
    border-left: 5px solid transparent;
}

.faq-question:hover {
    background-color: var(--primary-light);
    border-left: 5px solid var(--primary-color);
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    padding-right: 15px;
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform var(--transition-normal);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--primary-light);
    border-radius: 50%;
}

.faq-toggle.active {
    transform: rotate(180deg);
    background-color: var(--primary-color);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    padding: 25px;
    margin: 0;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer.active {
    max-height: 400px;
}

/* Main Navigation */
.main-nav {
    background-color: var(--primary-dark);
    padding: 0;
    position: relative;
    z-index: 10;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 16px 24px;
    display: inline-block;
    font-weight: 500;
    position: relative;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.main-nav a:hover, 
.main-nav a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 10px;
    left: 24px;
    background-color: white;
    transition: width var(--transition-normal);
}

.main-nav a:hover:after, 
.main-nav a.active:after {
    width: calc(100% - 48px);
}

/* Contact Section */
.contact-section {
    padding: 60px 30px;
    background-color: white;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(93, 63, 211, 0) 0%, 
        rgba(93, 63, 211, 0.3) 50%, 
        rgba(93, 63, 211, 0) 100%);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 35px auto;
    color: var(--text-medium);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(93, 63, 211, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-normal);
    background-color: white;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(93, 63, 211, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end));
    padding: 40px;
    border-radius: var(--radius-md);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="rgba(255,255,255,0.1)" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 1;
}

.info-item {
    margin-bottom: 35px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.info-item i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.15);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.info-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: auto;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-links i {
    font-size: 1.3rem;
}

#form-status {
    padding: 15px;
    margin-top: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
}

#form-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

#form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
    display: none;
}

/* Footer */
footer {
    background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 60px 30px 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="rgba(255,255,255,0.1)" fill-rule="evenodd"/%3E%3C/svg%3E');
    opacity: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
    padding: 3px 0;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width var(--transition-normal);
}

.footer-col a:hover {
    color: white;
}

.footer-col a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    animation: modalFadeIn 0.3s;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    position: relative;
    animation: modalSlideIn 0.4s;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(93, 63, 211, 0.1);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-70px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-normal);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--text-dark);
    background-color: var(--primary-light);
    transform: rotate(90deg);
}

.policy-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 20px;
}

.policy-content::-webkit-scrollbar {
    width: 8px;
}

.policy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.policy-content::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.policy-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.policy-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-medium);
}

.policy-content h3 {
    color: var(--text-dark);
    margin: 30px 0 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.policy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
    color: var(--text-medium);
}

/* Messages */
.error {
    color: #dc2626;
    padding: 15px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    margin: 15px 0;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.95rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    border-top: 1px solid rgba(93, 63, 211, 0.15);
}

.cookie-banner.show {
    bottom: 0;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.cookie-content i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.2rem;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.cookie-btn.accept {
    background: linear-gradient(120deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.cookie-btn.accept:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.cookie-btn.decline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.cookie-btn.decline:hover {
    background-color: var(--background-color);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        border-radius: 0;
        max-width: 100%;
    }
    
    .blog-posts {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.05rem;
    }
    
    .main-nav a {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .tab-btn {
        padding: 12px 15px;
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .calculator-container,
    .features-section,
    .blog-section,
    .faq-section,
    .contact-section {
        padding: 40px 20px;
    }
    
    .features-section h2,
    .blog-section h2,
    .faq-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .comparison-container {
        flex-direction: column;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        order: -1;
        padding: 30px;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .modal-content {
        margin: 30px 20px;
        padding: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    body {
        padding: 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    header {
        padding: 40px 20px;
    }
    
    .tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .input-container,
    .result {
        padding: 25px 20px;
    }
    
    .age-details {
        flex-direction: column;
    }
    
    .age-detail-item {
        width: 100%;
    }
    
    .main-nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }
    
    .main-nav a {
        white-space: nowrap;
        padding: 14px 12px;
        font-size: 0.85rem;
    }
    
    .features-grid,
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .blog-post {
        margin-bottom: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    footer {
        padding: 40px 20px 20px;
    }
    
    .footer-col {
        flex: 100%;
        text-align: center;
    }
    
    .footer-col h3 {
        margin-bottom: 20px;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.calculator-container {
    animation: fadeInUp 0.8s;
}

.feature-card {
    animation: fadeInUp 0.8s;
    animation-fill-mode: both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }
.feature-card:nth-child(4) { animation-delay: 0.7s; }

.blog-post {
    animation: fadeInUp 0.8s;
    animation-fill-mode: both;
}

.blog-post:nth-child(1) { animation-delay: 0.2s; }
.blog-post:nth-child(2) { animation-delay: 0.4s; }
.blog-post:nth-child(3) { animation-delay: 0.6s; }

.primary-btn {
    animation: pulse 2s infinite;
}

.info-item i {
    animation: float 3s ease-in-out infinite;
}

/* Print styles */
@media print {
    .container {
        box-shadow: none;
        max-width: 100%;
    }
    
    header,
    .main-nav, 
    .tabs,
    .primary-btn, 
    footer, 
    .features-section, 
    .blog-section, 
    .contact-section,
    .faq-section {
        display: none;
    }
    
    .calculator-container {
        padding: 0;
    }
    
    .result {
        box-shadow: none;
        border: 1px solid #ddd;
        margin: 0;
        padding: 15px;
    }
    
    .age-details {
        display: block;
    }
    
    .age-detail-item {
        display: inline-block;
        margin: 10px;
        padding: 10px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Add Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); 