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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Brand Colors from Logo */
:root {
    --primary-navy: #2C3E50;
    --primary-green: #7CB342;
    --light-green: #8BC34A;
    --dark-navy: #1A252F;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
}

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

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-navy);
}

.phone-info i {
    color: var(--primary-green);
    font-size: 18px;
}

.phone-info small {
    font-size: 12px;
    color: var(--medium-gray);
}

.login-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: var(--light-green);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.9) 100%), url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.stars {
    color: #ffc107;
    font-size: 18px;
}

.rating span {
    color: var(--medium-gray);
    font-weight: 500;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
}


.cta-btn {
    background: var(--primary-navy);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--dark-navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
}

.cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.partner-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.partner-info span:first-child {
    color: var(--primary-navy);
    font-size: 0.95rem;
    font-weight: 600;
}

.singpass {
    color: #e74c3c;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Hero Right Side */
.hero-right {
    position: relative;
}

.hero-image {
    position: relative;
    height: 400px;
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.person-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 80%;
    background-image: url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px 0 20px 0;
}

.chat-bubbles {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.bubble {
    background: white;
    padding: 12px 18px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-weight: 500;
    color: var(--primary-navy);
    animation: fadeInUp 0.6s ease forwards;
}

.bubble-1 { animation-delay: 0.2s; opacity: 0; }
.bubble-2 { animation-delay: 0.4s; opacity: 0; }
.bubble-3 { animation-delay: 0.6s; opacity: 0; }

.main-bubble {
    background: var(--primary-green);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    animation-delay: 0.8s;
    opacity: 0;
}

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

/* Loan Calculator Section */
.loan-calculator {
    padding: 80px 0;
    background: var(--light-gray);
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.calculator-card h3 {
    color: var(--primary-navy);
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.calculator-subtitle {
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.input-group {
    margin-bottom: 35px;
}

.input-group label {
    display: block;
    color: var(--primary-navy);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.slider-container {
    margin: 15px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin: 20px 0 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.4);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.amount-display, .term-display, .rate-display {
    text-align: center;
    margin-top: 15px;
}

.amount, .term, .rate {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

.calculator-results {
    background: linear-gradient(135deg, var(--primary-navy), var(--dark-navy));
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    color: white;
}

.main-result {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.main-result .result-label {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.main-result .result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-item {
    text-align: center;
}

.result-item .result-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.result-item .result-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.calculator-cta {
    text-align: center;
    margin-top: 30px;
}

.calculator-cta .cta-btn {
    margin-bottom: 15px;
}

.disclaimer {
    color: var(--medium-gray);
    font-size: 0.85rem;
    font-style: italic;
    margin: 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light-gray);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 60px;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.partners h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.partners-logos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(248,249,250,1) 0%, rgba(248,249,250,0) 10%, rgba(248,249,250,0) 90%, rgba(248,249,250,1) 100%);
    pointer-events: none;
    z-index: 1;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: none;
    animation: slideLogos 12s linear infinite;
    flex-shrink: 0;
    min-width: 140px;
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
    animation-play-state: paused;
}

.partner-logo img {
    max-height: 50px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@keyframes slideLogos {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100vw);
    }
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.company-info h4 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.company-info p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.link-group h4 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 8px;
}

.link-group a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.4;
}

.link-group a:hover {
    color: var(--primary-green);
}

.social-section {
    margin-top: 30px;
}

.social-section h4 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links a:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

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

/* Page Header */
.page-header {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.9) 100%), url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Active Navigation Link */
.nav-menu a.active {
    color: var(--primary-green);
    font-weight: 600;
}

/* About Page Styles */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-text h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.about-text p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.stats-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat p {
    color: var(--medium-gray);
    font-weight: 500;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.values-section h2 {
    text-align: center;
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 1.8rem;
    color: white;
}

.value-card h3 {
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

.team-section h2 {
    text-align: center;
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.member-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-green));
    border-radius: 50%;
    margin: 0 auto 20px;
}

.team-member h3 {
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.role {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member p {
    color: var(--medium-gray);
    line-height: 1.6;
}


.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: white;
    opacity: 0.9;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-content .cta-btn {
    background: white;
    color: var(--primary-green);
    text-decoration: none;
    display: inline-block;
}

.cta-content .cta-btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

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

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    margin: 3px 0;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .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: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-left, .hero-right {
        flex: none;
        width: 100%;
    }
    
    .hero-right {
        margin-top: 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .partners h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .partners-logos {
        gap: 25px;
    }
    
    .partner-logo {
        height: 50px;
    }
    
    .partner-logo img {
        max-height: 40px;
        max-width: 100px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    line-height: 60px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-float i {
        line-height: 50px;
    }
}

/* Legal Pages Styling */
.legal-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.last-updated {
    font-style: italic;
    color: var(--medium-gray);
    margin-bottom: 40px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--primary-navy);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
}

.legal-section h3 {
    color: var(--primary-navy);
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.legal-section p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-info {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 40px 0;
    }
    
    .content-wrapper {
        padding: 0 20px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
}
