/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #ffffff;
    padding: 2.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid #dc3545;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.hero-title .emoji {
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-cta .btn {
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    padding: 0.6rem 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2a2a5a 100%);
    border-bottom-color: #ff6b6b;
}

/* ========== SECTION SPACING ========== */
.tools-section {
    padding: 2.5rem 0;
    margin-bottom: 1rem;
}

.tools-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    width: 50%;
}

/* ========== CARD STYLING ========== */
.card-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    height: 100%;
}

.card-link:hover { text-decoration: none; }

.tool-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: #dc3545;
    box-shadow: 0 12px 32px rgba(220, 53, 69, 0.2);
}

.tool-card .card-body {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tool-card .card-title {
    font-size: clamp(1.1rem, 2.5vw, 0.95rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tool-card .card-text {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.4;
}

.tool-card i {
    transition: all 0.3s ease;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
}

.tool-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

[data-bs-theme="dark"] .tool-card {
    background: #1a1a1a;
    border-color: #333333;
}

[data-bs-theme="dark"] .tool-card:hover { border-color: #ff6b6b; }
[data-bs-theme="dark"] .tool-card .card-text { color: #a0a0a0; }

/* ========== GRID RESPONSIVE ========== */
.tools-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 1920px) {
    .tools-grid { grid-template-columns: repeat(5, 1fr); gap: 1.75rem; }
}

@media (min-width: 1400px) and (max-width: 1919px) {
    .tools-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .tools-grid { grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .tools-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

@media (min-width: 576px) and (max-width: 767px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 575px) {
    .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ========== FEATURE BOX ========== */
.feature-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 300ms ease;
    padding: 1.5rem;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(220, 53, 69, 0.15);
}

.feature-box h3 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-box p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    margin-bottom: 0;
}

.feature-box i {
    transition: transform 300ms ease;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.feature-box:hover i { transform: scale(1.15); }

[data-bs-theme="dark"] .feature-box {
    background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
    border-color: rgba(255, 159, 150, 0.1);
}

[data-bs-theme="dark"] .feature-box h3 { color: #f0f4f9; }
[data-bs-theme="dark"] .feature-box p { color: #cbd5e0; }

/* ========== FAQ SECTION ========== */
.faq-section { padding: 2.5rem 0; }

.faq-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.accordion-button {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    padding: 1rem;
}

.accordion-body {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    padding: 1rem;
    line-height: 1.6;
}

.accordion-button:not(.collapsed) {
    color: #dc3545;
    background-color: #fff5f5;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: #2a2a2a;
    color: #ff6b6b;
}

/* ========== UTILITY CLASSES ========== */
.bg-light { background-color: #f8f9fa !important; }
[data-bs-theme="dark"] .bg-light { background-color: #1a1a1a !important; }

.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

@media (max-width: 575px) {
    .py-5 {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
}

.my-1 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* ========== CONTAINER RESPONSIVE ========== */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 575px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ========== ROW & COLUMN SPACING ========== */
.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.col {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (max-width: 575px) {
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    .col {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* ========== TEXT ALIGNMENT & SIZING ========== */
.text-center { text-align: center; }

h2, h3, h4, h5, h6 { word-break: break-word; }

/* ========== BUTTON RESPONSIVE ========== */
.btn {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    padding: clamp(0.4rem, 2vw, 0.6rem) clamp(0.75rem, 3vw, 1.5rem);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    padding: clamp(0.5rem, 2vw, 0.7rem) clamp(1rem, 4vw, 2rem);
}

/* ========== SECTION TEXT CENTER ========== */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #dc3545;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ========== ICON SIZING ========== */
.fs-1 { font-size: clamp(1.5rem, 4vw, 2rem) !important; }

/* ========== MAIN CONTAINER ========== */
main { min-height: calc(100vh - 200px); }

/* ========== DARK MODE SUPPORT ========== */
[data-bs-theme="dark"] {
    background-color: #0d1117;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .tools-section { background-color: transparent; }
[data-bs-theme="dark"] .tools-section.bg-light { background-color: #1a1a1a !important; }
