/* Custom Styles with Bootstrap */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper to push footer down */
.hero,
.tools-section,
.search-container,
.page-wrapper,
.app-container,
.info-section,
.container:not(#site-footer .container) {
    flex-shrink: 0;
}

/* Navigation */
.navbar {
    padding: 18px 0 !important;
    flex-shrink: 0;
}

.logo {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #6c5ce7 !important;
    text-decoration: none !important;
}

.navbar-toggler {
    border: none !important;
    padding: 0 !important;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background: #6c5ce7;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) { 
    transform: rotate(45deg) translate(9px, 9px); 
}

.hamburger.active span:nth-child(2) { 
    opacity: 0; 
}

.hamburger.active span:nth-child(3) { 
    transform: rotate(-45deg) translate(8px, -8px); 
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px !important;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #6c5ce7 !important;
}

/* Dropdown */
.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-top: 8px !important;
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #6c5ce7;
    padding-left: 20px;
}

.dropdown.active .dropdown-menu {
    display: block;
}

/* Search Bar */
.search-container {
    margin: 30px auto;
    max-width: 1200px;
}

.search-box {
    position: relative;
}

.search-box .form-control {
    padding: 22px 70px 22px 28px;
    font-size: 18px;
    font-weight: 500;
    border: 3px solid #e0e0e0;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s;
}

.search-box .form-control:focus {
    border-color: #6c5ce7;
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.3);
    transform: translateY(-3px);
}

.search-box .form-control::placeholder {
    color: #95a5a6;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    transition: all 0.4s;
    pointer-events: none;
}

.search-box .form-control:focus + .search-icon {
    background: linear-gradient(135deg, #5f4dd1, #9287f7);
    transform: translateY(-50%) scale(1.15) rotate(10deg);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    margin-bottom: 15px;
}

/* Tools Section */
.tools-section {
    margin: -40px auto 60px;
    padding: 0 20px;
    max-width: 1200px;
}

.section-title {
    font-size: 32px;
    color: #2d3436;
}

.tool-card {
    transition: all 0.3s;
    border: 2px solid transparent !important;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(108,92,231,0.2) !important;
    border-color: #6c5ce7 !important;
}

.tool-card .card-title {
    color: #2d3436;
    margin-bottom: 12px;
}

.tool-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.tool-btn {
    background: #6c5ce7 !important;
    border: none !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
}

.tool-btn:hover {
    background: #5f4dd1 !important;
    transform: scale(1.05);
}

/* ========== PERFECT BOOTSTRAP FOOTER ========== */
#site-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: rgba(255,255,255,.85);
    border-top: 3px solid #6c5ce7;
    flex-shrink: 0;
    width: 100%;
    padding: 50px 0 0 0;
}

/* Footer Columns - Support for any number of columns */
#site-footer .footer-col {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 15px;
}

#site-footer .footer-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Footer Section Styling */
.footer-section {
    margin-bottom: 30px;
}

.footer-title {
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #10b981;
    padding-bottom: 12px;
    display: inline-block;
    width: 100%;
}

.footer-content {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}

.footer-content a {
    color: #10b981;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-content a:hover {
    color: #34d399;
    transform: translateX(5px);
    text-decoration: underline;
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-content ul li {
    margin: 10px 0;
    padding: 0;
}

.footer-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Footer Bottom Copyright */
.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 15px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 20px !important;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        box-shadow: none;
        background: #f8f9fa;
        border: none;
        margin-top: 0 !important;
    }
    
    /* Footer: wrap on tablets, 2 columns */
    #site-footer .footer-row {
        flex-wrap: wrap;
    }
    
    #site-footer .footer-col {
        flex: 0 0 calc(50% - 10px);
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 22px !important;
    }
    
    .search-box .form-control {
        padding: 18px 60px 18px 22px;
        font-size: 16px;
    }
    
    .search-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-content {
        font-size: 14px;
    }
    
    /* Footer: 1 column on mobile */
    #site-footer .footer-col {
        flex: 0 0 100%;
    }
    
    #site-footer .footer-row {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px !important;
    }
    
    .hamburger span {
        width: 26px;
    }
    
    .search-box .form-control {
        padding: 16px 55px 16px 20px;
        font-size: 15px;
    }
    
    .search-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .footer-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-content {
        font-size: 13px;
    }
}