/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #3b82f6;
    --dark: #1f2937;
    --light: #f3f4f6;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo img {
    height: 40px;
    margin-right: 0.5rem;
}

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

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    color: var(--gray-600);
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    width: 24px;
    height: 24px;
    color: #333;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    background: linear-gradient(135deg, #7F00FF, #E100FF);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}


/* shree tools section  */

.shreetool-section {
    background-color: #253f86;
    color: #e0e0e0;
    padding: 80px 20px;
    font-family: 'Poppins', sans-serif;
  }
  
  .shreetool-wrapper {
    max-width: 1100px;
    margin: auto;
    text-align: center;
  }
  
  .shreetool-heading {
    font-size: 2.5rem;
    color: #00ffff;
    margin-bottom: 20px;
    font-weight: 700;
  }
  
  .shreetool-subheading,
  .shreetool-hindi,
  .shreetool-footer {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #bbb;
  }
  
  .shreetool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
  }
  
  .shreetool-card {
    background-color: #151b2b;
    border: 1px solid #1f2a3b;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
  }
  
  .shreetool-card:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
  }
  
  .shreetool-card h3 {
    color: #00ffff;
    margin-top: 10px;
    font-size: 1.2rem;
  }
  
  .shreetool-card p {
    color: #ccc;
    font-size: 0.95rem;
  }
  
  .shreetool-buttons {
    margin-top: 40px;
  }
  
  .shreetool-buttons a {
    display: inline-block;
    margin: 10px 15px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .shreetool-btn-primary {
    background-color: #00ffff;
    color: #000;
  }
  
  .shreetool-btn-primary:hover {
    background-color: #00cccc;
  }
  
  .shreetool-btn-secondary {
    background-color: #1f2a3b;
    color: #00ffff;
    border: 1px solid #00ffff;
  }
  
  .shreetool-btn-secondary:hover {
    background-color: #00ffff;
    color: #000;
  }
  

  .shreetool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 cards per row */
    gap: 25px;
    margin-top: 40px;
  }
  
  /* Tablet view - 2 cards */
  @media (max-width: 991px) {
    .shreetool-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Mobile view - 1 card */
  @media (max-width: 767px) {
    .shreetool-grid {
      grid-template-columns: 1fr;
    }
  }
  

/* Tools Section */
.tools-section {
    padding: 4rem 0;
    flex: 1;
}

.alt-bg {
    background: #f1f1f1;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tool-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-button {
    margin-top: 1rem;
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s;
    text-decoration: none;
}

.tool-button:hover {
    background: #0056b3;
    color: #fff;
}

/* Ad Containers */
.ad-container {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
    text-align: center;
}

.ad-wrapper {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .ad-wrapper {
    background: #2d2d2d;
}

/* CTA */
.cta {
    background: #007bff;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.cta-button {
    background: white;
    color: #007bff;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background: #e1e1e1;
    color: #007bff;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #333;
    color: white;
}

.newsletter-button {
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 100;
}

.feedback-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Dark Mode */
.dark-mode {
    background-color: var(--gray-900);
    color: var(--gray-100);
}

.dark-mode header {
    background: var(--gray-800);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .logo {
    color: var(--gray-100);
}

.dark-mode .nav-link {
    color: var(--gray-300);
}

.dark-mode .nav-link:hover {
    color: var(--primary);
}

.dark-mode .tool-card {
    background: var(--gray-800);
    color: var(--gray-100);
}

.dark-mode footer {
    background: var(--gray-800);
    border-top-color: var(--gray-700);
}

.dark-mode .footer-column h3 {
    color: var(--gray-100);
}

.dark-mode .footer-links a,
.dark-mode .social-links a {
    color: var(--gray-300);
}

.dark-mode .footer-links a:hover,
.dark-mode .social-links a:hover {
    color: var(--primary);
}

.dark-mode .newsletter-input {
    background: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--gray-100);
}

.dark-mode .footer-bottom {
    border-top-color: var(--gray-700);
    color: var(--gray-400);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-button {
        display: block;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

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

    .ad-container {
        margin: 1.5rem auto;
    }
    
    .ad-wrapper {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

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

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

    .ad-container {
        margin: 1rem auto;
    }
    
    .ad-wrapper {
        padding: 0.5rem;
    }
}
