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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.top-header {
    background: linear-gradient(0deg,#be2a2a 5.9%,#ef7f1a 94.28%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    min-height: 60px;
}

.nav-menu {
    flex: 1;
    display: flex;
    align-items: end;
    justify-content: end;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.icici-logo{
    margin-left: 40%;
}

.logo-section {
    display: flex;
    align-items: center;
}

.icici-logo img {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 1%;
}

.header-info {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.legacy-text {
    color: rgba(255, 255, 255, 0.9);
}

.legacy-text strong {
    color: white;
}

.login-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: white;
    color: #FF6600;
}

.open-account-btn {
    background: white;
    border: none;
    color: #FF6600;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.open-account-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Main Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}


.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-bottom-color: white;
}

.headphones-icon a{
    padding: 20px 40px 39px 40px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url(header-icon-sprite.svg);
    background-repeat: no-repeat;
    background-position: 0.4px 15px;
}

.headphones-icon svg {
    width: 20px;
    height: 20px;
}

.headphones-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.headphones-icon:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 600px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.dropdown:hover .dropdown-menu,
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.invest-dropdown {
    min-width: 900px;
}

.dropdown-content {
    display: flex;
    padding: 0;
}

.dropdown-column {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #f0f0f0;
}

.dropdown-column:last-child {
    border-right: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    color: #FF6600;
    background: rgba(255, 102, 0, 0.05);
    padding-left: 10px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.arrow-right {
    color: #999;
    font-size: 16px;
}

.sub-menu {
    list-style: none;
    padding: 0;
}

.sub-menu li {
    margin-bottom: 8px;
}

.sub-menu a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.sub-menu a:hover {
    color: #FF6600;
}

/* Dropdown Promo Card */
.dropdown-promo {
    flex: 1.2;
    padding: 0;
}

.promo-card {
    background: linear-gradient(135deg, #FF6600 0%, #E55A00 100%);
    color: white;
    padding: 25px;
    height: 100%;
    border-radius: 0 0 8px 0;
    position: relative;
    overflow: hidden;
}

.promo-card h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.promo-features {
    list-style: none;
    margin-bottom: 20px;
}

.promo-features li {
    font-size: 13px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.promo-image {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 120px;
}

.phone-mockup {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.promo-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scrolling Warning Banner */
.scrolling-banner {
    background: #e3530f;
    color: white;
    padding: 5px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.scrolling-text {
    display: inline-block;
    animation: scroll-left 80s linear infinite;
    font-size: 12px;
}

.banner-link {
    color: #ffffff;
    text-decoration: underline;
}

.banner-link:hover {
    text-decoration: none;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Secondary Navigation */
.secondary-nav {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-sections {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-section h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.separator {
    color: #ccc;
    font-size: 24px;
    font-weight: 300;
}

/* Service Icons Section */
.service-icons {
    background: #f8f9fa;
    padding: 30px 0;
}

.service-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.service-icon {
    font-size: 24px;
}

.features-text {
    text-align: center;
}

.features-text h4 {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Maintenance Main Content */
.maintenance-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 60px 0;
}

.maintenance-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.maintenance-card {
    background: white;
    padding: 60px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    border: 1px solid #e0e0e0;
}

.maintenance-header {
    margin-bottom: 40px;
}

.icici-logo-maintenance img {
    margin-bottom: 10px;
    filter: none; /* Keep original colors for maintenance logo */
}

.tagline {
    color: #666;
    font-size: 16px;
    font-style: italic;
}

.maintenance-message h1 {
    color: #FF6600;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.downtime-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.downtime-message strong {
    color: #FF6600;
}

.customer-service {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

.customer-service p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.customer-service p:first-child {
    font-weight: 600;
    color: #FF6600;
}

/* Footer */
.main-footer {
    background: linear-gradient(0deg,#be2a2a 5.9%,#ef7f1a 94.28%);
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-links a {
    color: white;
    text-decoration: underline;
    font-size: 13px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-powered {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive Design */

/* Large screens - ensure proper scaling */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .top-header {
        padding: 12px 30px;
    }
    
    .nav-link {
        padding: 18px 25px;
        font-size: 16px;
    }
}

/* Medium screens and tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .top-header {
        padding: 8px 20px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .login-btn, .open-account-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .open-account-btn {
        padding: 10px 16px;
    }
    
    .headphones-icon {
        padding: 15px 25px 25px 25px;
        background-position: 0.4px 12px;
    }
}

/* Mobile and small tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .top-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 10px 15px;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .logo-section {
        order: 1;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
    }
    
    .header-actions {
        order: 2;
    }

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #FF6600 0%, #E55A00 100%);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
        border-radius: 0 0 8px 8px;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .headphones-icon {
        padding: 15px 20px 25px 20px;
        background-position: 0.4px 10px;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        min-width: auto;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.95);
    }

    .dropdown-content {
        flex-direction: column;
    }

    .dropdown-column {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-sections {
        flex-direction: column;
        gap: 20px;
    }

    .nav-section {
        flex-direction: column;
        gap: 20px;
    }

    .separator {
        display: none;
    }

    .service-row {
        flex-direction: column;
        gap: 30px;
    }

    .maintenance-card {
        padding: 40px 30px;
        margin: 0 15px;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .scrolling-text {
        font-size: 12px;
    }
    
    .maintenance-card {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .maintenance-header h1 {
        font-size: 28px;
    }
    
    .downtime-message {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .icici-logo-maintenance img {
        width: 200px;
        height: auto;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .top-header {
        padding: 8px 10px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .login-btn, .open-account-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .maintenance-card {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .maintenance-header h1 {
        font-size: 24px;
    }
    
    .downtime-message {
        font-size: 13px;
    }
    
    .icici-logo-maintenance img {
        width: 180px;
        height: auto;
    }
    
    .headphones-icon {
        padding: 12px 15px 20px 15px;
        background-position: 0.4px 8px;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, #FF6600 0%, #E55A00 100%);
        transition: left 0.3s ease;
        z-index: 1001;
        padding-top: 60px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .maintenance-message h1 {
        font-size: 20px;
    }

    .downtime-message {
        font-size: 14px;
    }

    .nav-section h3 {
        font-size: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maintenance-card {
    animation: fadeIn 0.6s ease-out;
}

/* Focus states for accessibility */
.login-btn:focus,
.open-account-btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .scrolling-banner,
    .main-header,
    .secondary-nav,
    .service-icons,
    .main-footer {
        display: none;
    }

    .maintenance-main {
        min-height: auto;
        padding: 20px 0;
    }

    .maintenance-card {
        box-shadow: none;
        border: 2px solid #ccc;
    }
}