:root {
    --sg-red: #ED2939;
    --sg-white: #FFFFFF;
    --sg-dark: #000000;
    --primary-color: #ED2939;
    --secondary-color: #C41E3A;
    --accent-color: #FFD700;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.navbar {
    background: linear-gradient(135deg, var(--sg-red) 0%, var(--secondary-color) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.brand-logo i {
    font-size: 1.8rem;
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    margin-top: -2px;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.15);
    color: white !important;
}

.nav-link i {
    margin-right: 5px;
}

.hero-section {
    background: linear-gradient(135deg, var(--sg-red) 0%, var(--secondary-color) 50%, #8B0000 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-search-box {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.hero-search-box .form-control {
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
}

.hero-search-box .form-control:focus {
    box-shadow: none;
}

.hero-search-box .btn {
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--sg-red), var(--secondary-color));
    border: none;
}

.hero-search-box .btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(237, 41, 57, 0.3);
}

.features-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--sg-red), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--sg-red);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--sg-red), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-desc {
    color: #666;
    line-height: 1.7;
}

.content-section {
    padding: 80px 0;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--sg-red);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.search-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group .form-control {
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #eee;
}

.search-input-group .form-control:focus {
    border-color: var(--sg-red);
    box-shadow: 0 0 0 3px rgba(237, 41, 57, 0.1);
}

.search-input-group .btn {
    border-radius: 10px;
    padding: 15px 30px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--sg-red), var(--secondary-color));
    border: none;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.result-available {
    border-left: 5px solid #28a745;
}

.result-unavailable {
    border-left: 5px solid #dc3545;
}

.result-domain {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.result-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.result-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sg-red);
}

.domain-type-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.domain-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--sg-red);
}

.domain-type-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.domain-type-badge {
    background: linear-gradient(135deg, var(--sg-red), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.domain-type-title {
    margin-left: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.domain-type-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.domain-type-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sg-red);
    margin-bottom: 15px;
}

.domain-type-features {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    color: #555;
}

.footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #16213e 100%);
}

.footer h5 {
    color: white;
    font-weight: 600;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--sg-red) !important;
}

.brand-link a {
    color: var(--accent-color) !important;
}

.singapore-flag-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--sg-red) 0%, var(--sg-red) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner.show {
    display: block;
}

.suggestions-list {
    margin-top: 20px;
}

.suggestion-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-search-box {
        flex-direction: column;
        border-radius: 15px;
        padding: 15px;
    }
    
    .hero-search-box .form-control {
        margin-bottom: 10px;
    }
    
    .hero-search-box .btn {
        width: 100%;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .domain-type-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .domain-type-title {
        margin-left: 0;
        margin-top: 15px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--sg-red), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--sg-red));
}

.btn-outline-primary {
    border-color: var(--sg-red);
    color: var(--sg-red);
}

.btn-outline-primary:hover {
    background: var(--sg-red);
    border-color: var(--sg-red);
}

.text-primary {
    color: var(--sg-red) !important;
}

.bg-primary {
    background-color: var(--sg-red) !important;
}

.page-header {
    background: linear-gradient(135deg, var(--sg-red) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}
