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

:root {
    /* Color Palette - Indigo Theme */
    --primary-color: #1d3eab;
    --secondary-color: #1d3eab;
    --accent-color: #f59e0b;
    --accent-pink: #ec4899;
    --accent-teal: #14b8a6;
    --accent-green: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;

    /* Gradients - Indigo Theme */
    --gradient-primary: #1d3eab;
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-pink: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --gradient-teal: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    --gradient-light: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gradient-hero: #1d3eab;

    /* Spacing - Adjusted for 80% width */
    --container-width: 80%;
    --max-container-width: 1400px;
    --section-padding: 80px 0;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 20px 25px -5px rgba(29, 62, 171, 0.2), 0 10px 10px -5px rgba(29, 62, 171, 0.1);
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    width: var(--container-width);
    max-width: var(--max-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    min-width: fit-content;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .company-name {
    font-size: 16px;
    font-weight: 700;
    color: #1d3eab;
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

/* Ensure all clickable elements work on mobile */
a, button, .btn, .nav-link, .carousel-btn, .dot {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.btn-primary {
    background: #1d3eab;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #162f85;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: #1d3eab;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: #162f85;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-dark {
    background: var(--dark-color);
    color: var(--white);
}

.btn-dark:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

/* Hero/Banner Section */
.hero-section {
    padding: 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #f9fafb 100%);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(29, 62, 171, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(29, 62, 171, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.banner-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    z-index: 1;
}

.banner-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1d3eab;
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 10px 20px -5px rgba(29, 62, 171, 0.4);
}

.carousel-btn:hover {
    background: #162f85;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(29, 62, 171, 0.6);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Section Titles */
.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #1d3eab;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Solutions Section */
.solutions-section {
    padding: var(--section-padding);
    background: var(--white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solution-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-colored);
    border-color: var(--primary-color);
}

.solution-card:nth-child(1) {
    border-top: 3px solid #1d3eab;
}

.solution-card:nth-child(2) {
    border-top: 3px solid #1d3eab;
}

.solution-card:nth-child(3) {
    border-top: 3px solid #1d3eab;
}

.solution-card:nth-child(4) {
    border-top: 3px solid #1d3eab;
}

.solution-card:nth-child(5) {
    border-top: 3px solid #1d3eab;
}

.solution-card:nth-child(6) {
    border-top: 3px solid #1d3eab;
}

.solution-card.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 50%, #ffffff 100%);
    border: 2px solid #f59e0b;
    box-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.3);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.solution-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 24px;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1d3eab;
    font-weight: bold;
    font-size: 16px;
}

/* Portal Section */
.portal-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 50%, #f0fdf4 100%);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portal-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.portal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(29, 62, 171, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portal-card:hover::after {
    opacity: 1;
}

.portal-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(29, 62, 171, 0.3);
}

.portal-card:nth-child(1) {
    border-top: 4px solid #1d3eab;
}

.portal-card:nth-child(1):hover {
    box-shadow: 0 20px 40px -10px rgba(29, 62, 171, 0.4);
}

.portal-card:nth-child(2) {
    border-top: 4px solid #1d3eab;
}

.portal-card:nth-child(2):hover {
    box-shadow: 0 20px 40px -10px rgba(29, 62, 171, 0.4);
}

.portal-card:nth-child(3) {
    border-top: 4px solid #1d3eab;
}

.portal-card:nth-child(3):hover {
    box-shadow: 0 20px 40px -10px rgba(29, 62, 171, 0.4);
}

.portal-card:nth-child(4) {
    border-top: 4px solid #1d3eab;
}

.portal-card:nth-child(4):hover {
    box-shadow: 0 20px 40px -10px rgba(29, 62, 171, 0.4);
}

.portal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.portal-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.portal-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.portal-card .btn {
    width: 100%;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.portal-card a {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
}

.portal-card p,
.portal-card h3 {
    position: relative;
    z-index: 1;
}

/* Ensure links are always clickable even during animations */
.portal-card,
.solution-card,
.benefit-item {
    pointer-events: auto;
}

.portal-card a,
.solution-card a,
.benefit-item a,
.portal-card .btn,
.solution-card .btn {
    pointer-events: auto !important;
}

/* Benefits Section */
.benefits-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(29, 62, 171, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(29, 62, 171, 0.05) 0%, transparent 30%);
    pointer-events: none;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-desc {
    color: #cbd5e1;
    line-height: 1.6;
    margin-top: 12px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    touch-action: manipulation;
}

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

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

.footer-contact li {
    color: #cbd5e1;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #cbd5e1;
    margin-bottom: 8px;
}

.made-with-love {
    font-size: 14px;
    color: #94a3b8;
}

.made-with-love a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.made-with-love a:hover {
    color: #93c5fd;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Menu Toggle - Show on Mobile */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu Overlay - Enable on Mobile */
    .mobile-menu-overlay {
        display: block;
    }

    /* Logo text for tablet */
    .logo-text .company-name {
        font-size: 12px;
    }

    /* Mobile Sidebar Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 80px 0 20px 0;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        pointer-events: none;
    }

    .nav-menu.active {
        right: 0;
        pointer-events: auto;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 16px 24px;
        border-left: 4px solid transparent;
        font-size: 15px;
        text-align: left;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background-color: rgba(29, 62, 171, 0.1);
        border-left-color: var(--primary-color);
    }

    .nav-menu .btn {
        width: calc(100% - 48px);
        margin: 16px 24px;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    /* Ensure all nav items are clickable on mobile */
    .nav-menu a,
    .nav-menu .nav-link,
    .nav-menu .btn {
        position: relative;
        z-index: 1;
        display: block;
        -webkit-tap-highlight-color: rgba(29, 62, 171, 0.2);
        touch-action: manipulation;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .solutions-grid,
    .portal-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .banner-slide img {
        min-height: 200px;
        object-fit: cover;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .logo-text .company-name {
        font-size: 11px;
    }


    .logo img {
        height: 40px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-slide img {
        min-height: 150px;
        object-fit: cover;
    }

    .carousel-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 6px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}
