/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
}

.modal[data-visible="true"] {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 2000;
}

.modal[data-visible="true"] .modal-overlay {
    opacity: 1;
}

.nav-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: #387571;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(-45deg, #0d9488, #0891b2, #475569, #1e40af);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Banking Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icons .icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
        opacity: 0.5;
    }
}

.hero {
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container {
    animation: slideInUp 1s ease-out 0.6s both;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-logo img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Search Container */
.search-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    color: #387571;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-content input,
.tab-content select {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.tab-content input:focus,
.tab-content select:focus {
    outline: none;
    border-color: #387571;
    box-shadow: 0 0 0 1px rgba(56, 117, 113, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: #387571;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    min-width: 120px;
}

.search-btn:hover {
    background: #2c5c59;
    transform: translateY(-1px);
}

/* Ad Section */
.ad-section {
    padding: 2rem 0;
    text-align: center;
}

/* Results Section */
.results-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
    font-size: 2rem;
}

.result-card {
    background: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #387571 0%, #2c5c59 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.branch-name {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.ifsc-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.ifsc-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.ifsc-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.ifsc-code {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.copy-icon {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
}

.card-body {
    padding: 2rem;
}

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

.info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.info-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.info-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-content {
    flex: 1;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.info-value {
    display: block;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
}

.address-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #e2e8f0;
}

.address-content {
    flex: 1;
}

.address-content .info-value {
    line-height: 1.6;
    color: #475569;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #1e293b;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8fafc;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
}



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

/* Disclaimer Dialog */
.disclaimer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.disclaimer-backdrop.show {
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001; /* Above the overlay */
}

.modal[data-visible="true"] .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-content {
    padding: 24px;
}

.modal-title {
    color: #387571;
    margin: 0 0 16px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    color: #4a5568;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding-top: 16px;
    text-align: right;
}

.update-date {
    margin-top: 16px;
    color: #718096;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #387571;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #2c5c58;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 117, 113, 0.3);
}

.disclaimer-content {
    color: #1e293b;
}

.disclaimer-content h3 {
    color: #387571;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.disclaimer-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.disclaimer-content .update-date {
    display: inline-block;
    background: #e6f0ef;
    color: #387571;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.modal-footer .btn-primary {
    background: #387571;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.08s;
}

.modal-footer .btn-primary:hover {
    background: #2c5c59;
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pagination button {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    border: none;
    background-color: transparent;
    color: #475569;
    cursor: pointer;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover:not(:disabled) {
    background-color: #e2e8f0;
    color: #387571;
    transform: translateY(-1px);
}

.pagination button.active {
    background-color: #387571;
    color: #fff;
    font-weight: 600;
}

.pagination button:disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Previous/Next buttons */
.pagination button.nav-btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: #387571;
    min-width: auto;
    gap: 0.5rem;
}

.pagination button.nav-btn:hover:not(:disabled) {
    background-color: #e2e8f0;
}

.pagination button.nav-btn:disabled {
    color: #cbd5e1;
}

/* Page numbers container */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-info {
    color: #64748b;
    font-size: 0.875rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.goto-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid #e2e8f0;
}

.goto-page label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.goto-page select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background-color: white;
    color: #387571;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 4rem;
}

.goto-page select:hover {
    border-color: #387571;
}

.goto-page select:focus {
    outline: none;
    border-color: #387571;
    box-shadow: 0 0 0 1px #387571;
}

.bank-logo {
    margin-bottom: 0.5rem;
}

.bank-card h3 {
    color: #1e293b;
    margin: 0;
    font-size: 1rem;
}

.bank-card p {
    color: #2563eb;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #2563eb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

/* Success Message */
.success-message {
    background: #dcfce7;
    color: #16a34a;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .tab-content {
        flex-direction: column;
    }
    
    .tab-content input,
    .tab-content select {
        min-width: auto;
    }
    
    .features h2,
    .popular-banks h2 {
        font-size: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .ifsc-badge {
        align-self: stretch;
    }
    
    .bank-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .search-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 10px;
    }
}