:root {
    --primary: #4f46e5;
    --secondary: #f97316;
    --tertiary: #10b981; 
    --background: #f9fafb;
    --dark: #111827;
    --light: #9ca3af;
}
html, body {
    overscroll-behavior: none;
  }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--dark);
}

header {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    overflow: hidden;
}

.header-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('img/abstract-shapes.svg') center/cover no-repeat;
    opacity: 0.05;
    z-index: 0;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0;
    z-index: 1;
    position: relative;
    animation: fadeSlideDown 1s ease forwards;
}

header p {
    margin: 1rem 0 0;
    font-weight: 400;
    z-index: 1;
    position: relative;
    animation: fadeSlideUp 1s 0.3s ease forwards;
}

nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 1;
    position: relative;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background 0.3s, transform 0.2s;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

#hero {
    text-align: center;
    margin-top: 2rem;
}

#hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeSlideDown 1s ease forwards;
}

#hero p {
    color: var(--light);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeSlideUp 1s 0.3s ease forwards;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: white;
    border-radius: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn.primary {
    background: #FF6F61; /* Bold, bright color to make it pop, like a coral or salmon shade */
    padding: 1.5rem 2.5rem; /* Keep the larger size */
    font-size: 1.25rem; /* Bigger text */
    border-radius: 999px; /* Fully rounded edges */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Strong shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn.primary:hover {
    transform: translateY(-6px); /* Make it pop when hovered */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25); /* Darker shadow */
    background: #FF4A3C; /* Slightly darker red on hover */
}

.btn.primary:focus {
    outline: 3px solid var(--secondary); /* Focus outline for accessibility */
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.emoji-bg {
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation: floatEmoji 4s infinite alternate ease-in-out;
}

@keyframes floatEmoji {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-20px); }
}

#calculators {
    padding: 4rem 1rem;
    text-align: center;
}

#calculators h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card .emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#articles {
    padding: 4rem 1rem;
    text-align: center;
    background-color: var(--background);
}

#articles h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.article-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.article-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 320px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem;
    text-align: center;
    color: #333;
    padding: 0 1rem;
}

.article-card .read-more {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary, #007bff);
    color: #fff;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.read-more-btn {
    display: inline-block;
    background-color: #f97316;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
  }

  .read-more-btn:hover {
    background-color: #ea580c;
    transform: scale(1.05);
  }

.article-card .read-more:hover {
    background-color: var(--primary-dark, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.cta {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
}

footer a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: white;
}
.btn.secondary {
    background: #5A67D8; /* A vibrant purple that stands out */
    padding: 1.2rem 2rem; /* Adjust padding for balance */
    font-size: 1.1rem; /* Slightly smaller text to fit the design */
    border-radius: 999px; /* Rounded edges */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn.secondary:hover {
    transform: translateY(-6px); /* Lift effect when hovered */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
    background: #4C51BF; /* Slightly darker purple when hovered */
}

.btn.secondary:focus {
    outline: 3px solid var(--secondary); /* Keep focus outline for accessibility */
}
.btn.tertiary {
    background: var(--tertiary);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 999px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn.tertiary:hover {
    background: #059669; /* slightly darker green */
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn.tertiary:focus {
    outline: 3px solid var(--secondary);
}

#article-page {
    padding: 4rem 1rem;
  }
  
  .article-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }
  
  .article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }
  
  .article-meta {
    color: var(--light);
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .article-meta a {
    color: var(--primary);
    text-decoration: none;
  }
  
  .article-meta a:hover {
    text-decoration: underline;
  }
  
  .article-image {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 2rem;
  }
  
  .article-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
  }
  
  .article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
  }
  
  .adsense-placeholder {
    background-color: #f0f0f0; /* Light grey background for the ad slot */
    height: 250px; /* Example size for the ad */
    margin: 2rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--dark);
    border-radius: 1rem;
  }
  
  .cta {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 1rem;
  }
  
  #related-articles {
    background-color: var(--background);
    padding: 4rem 1rem;
    text-align: center;
  }
  
  #related-articles h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .article-list {
    display: flex;
    justify-content: space-evenly;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .article-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 280px;
    padding: 1.5rem;
    text-align: center;
  }
  
  .article-card img {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
  }
  
  .article-card a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
  }

  #calculators {
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .calculator-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .calculator-form h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 1rem;
    box-sizing: border-box;
  }
  
  input:focus {
    border-color: var(--primary);
    outline: none;
  }
  
  button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border-radius: 999px;
    border: none;
    cursor: pointer;
  }
  
  button:hover {
    background: #4f46e5;
  }
  
  .calculator-results {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    display: none; /* Initially hidden */
  }
  
  .calculator-results p {
    margin: 1rem 0;
  }
  .contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 1rem;
    box-sizing: border-box;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.contact-form button {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.contact-form button:focus {
    outline: 
    3px solid var(--secondary); /* Keep focus outline for accessibility */
}

