:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--gradient-1);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navbar Styles */
.navbar-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
}

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

.nav-btn {
    background: var(--gradient-1);
    color: white !important;
    border-radius: 30px;
    padding: 8px 24px !important;
    margin-left: 15px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    color: white;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Analysis Results */
.analysis-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.analysis-card.loading {
    border: 2px solid var(--accent-color);
}

.analysis-card.error {
    border: 2px solid var(--danger-color);
    background-color: rgba(231, 76, 60, 0.05);
}

.analysis-card.safe {
    border: 2px solid var(--success-color);
    background-color: rgba(46, 204, 113, 0.05);
}

.analysis-card.dangerous {
    border: 2px solid var(--danger-color);
    background-color: rgba(231, 76, 60, 0.05);
}

/* Risk level indicators */
.risk-level {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.risk-level i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.risk-level.with-icon {
    padding-left: 0.75rem;
}

.risk-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.risk-summary-text {
    flex: 1;
    margin-right: 1rem;
}

.risk-summary-text h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.risk-summary-text p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.risk-level.high {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.risk-level.medium {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.risk-level.low {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

/* Error message styling */
.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: var(--danger-color);
}

.error-message i {
    margin-right: 0.5rem;
}

/* Risk factor items */
.risk-factors-list li {
    color: var(--secondary-color);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.risk-factors-list li:hover {
    background-color: rgba(0, 0, 0, 0.04);
    transform: translateX(5px);
}

.risk-factors-list li i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

.result-header {
    background: rgba(0, 0, 0, 0.02);
}

.result-header h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.result-header p {
    color: var(--secondary-color);
}

.result-body {
    color: var(--primary-color);
}

.stat-item h5 {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.stat-item p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.risk-factors-list li {
    color: var(--secondary-color);
    padding: 0.5rem 0;
}

.text-muted {
    color: var(--secondary-color) !important;
    opacity: 0.8;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    transition: width 0.6s ease;
}

.progress-bar-success {
    background-color: var(--success-color);
}

.progress-bar-warning {
    background-color: #f39c12;
}

.progress-bar-danger {
    background-color: var(--danger-color);
}

.progress-label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-value {
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.detection-badges .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.stat-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Feature Analysis Section */
.feature-analysis {
    padding: 1.5rem;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.feature-analysis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.feature-analysis-header h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.feature-analysis-summary {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.feature-analysis h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: white;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon.positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.feature-icon.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.feature-icon.neutral {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

.feature-content {
    flex: 1;
}

.feature-name {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.feature-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.feature-value {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-value i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.feature-value.with-icon {
    padding-left: 0.5rem;
}

.feature-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.feature-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.feature-stat-item:hover {
    transform: translateY(-2px);
}

.feature-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-stat-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-value.positive {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    font-weight: 600;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.feature-value.negative {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    font-weight: 600;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.feature-value.neutral {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    font-weight: 600;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
}

.detection-badges .badge {
    padding: 8px 12px;
    font-weight: 500;
    font-size: 0.85rem;
}

.risk-factors-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.risk-factors-list li:last-child {
    border-bottom: none;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: white;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    font-size: 2rem;
}

/* Examples Section */
.examples-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.examples-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.examples-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.examples-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.examples-list li {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.examples-list li:hover {
    transform: translateX(10px);
}

.examples-list li i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.examples-list li span {
    flex: 1;
}

.trusted h3 i {
    color: var(--success-color);
}

.malicious h3 i {
    color: var(--danger-color);
}

/* Check Section */
.check-section {
    padding: 100px 0;
    background: var(--gradient-2);
    color: white;
}

.check-card {
    border-radius: 20px;
    padding: 2.5rem;
}

.input-group-text {
    border-right: none;
    background: transparent;
}

.form-control {
    border-left: none;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Result Card */
.result-card {
    padding: 2rem;
    border-radius: 20px;
    color: white;
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.confidence-meter {
    margin-bottom: 1.5rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
}

.url-info {
    padding: 1.5rem;
    border-radius: 15px;
}

.url-detail-item {
    margin-bottom: 1rem;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form input.form-control,
.contact-form textarea.form-control {
    border: 2px solid #e9ecef;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form input.form-control:focus,
.contact-form textarea.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.contact-form .btn-gradient {
    padding: 12px 32px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-item span {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-section h2.gradient-text {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-section .subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-info h3 {
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form {
    margin-top: 1rem;
    position: relative;
}

.newsletter-form .form-control {
    border-radius: 20px;
    padding-right: 100px;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 20px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .footer-info, .footer-links, .footer-newsletter {
        margin-bottom: 2rem;
    }
}
