/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background with Dark Gradient Effect */
body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #1a1a1a, #000000);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    color: white !important;  /* Ensure all text is white */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animation for Background Gradient */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Global Styling for Text */
h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, select, label {
    color: white !important; /* Ensure all text is white */
}

/* Main Container */
.main-container {
    flex: 1;
    padding: 2rem 0;
}

/* Card Styling */
.card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #00bcd4;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
}

.card:hover {
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.6), 0 0 15px rgba(255, 64, 129, 0.4);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(90deg, #00bcd4, #ff4081);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
    border-bottom: none;
}

.card-body {
    padding: 20px;
}

/* Links and Buttons */
a {
    text-decoration: none;
    color: #00bcd4; /* Neon Cyan */
    transition: all 0.3s ease;
}

a:hover {
    color: #ff4081; /* Neon Pink on Hover */
    text-shadow: 0 0 8px rgba(255, 64, 129, 0.7);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, #00bcd4, #00bcd4);
    border: 2px solid #ffffff;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #00bcd4, #ff4081);
    border-color: #ff4081;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.7), 0 0 10px rgba(255, 64, 129, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
    border: 2px solid #ffffff;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background-color: #ff4081; /* Neon Pink Hover */
    border-color: #00bcd4;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.7);
    transform: translateY(-2px);
}

/* Form Styles */
.form-control, .form-select {
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid #00bcd4;
    color: white;
    padding: 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(26, 26, 26, 0.9);
    border-color: #ff4081;
    box-shadow: 0 0 0 0.25rem rgba(0, 188, 212, 0.25), 0 0 10px rgba(255, 64, 129, 0.3);
    color: white;
}

/* Section Styling */
section {
    padding: 50px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

section h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #00bcd4, #ff4081);
    bottom: -10px;
    left: 25%;
    border-radius: 5px;
}

/* Navbar Styling */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    border-bottom: 1px solid #00bcd4;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.7);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.7);
}

/* Footer Styling */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
    border-top: 1px solid #00bcd4;
}

.footer h5 {
    color: #00bcd4;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
}

.footer p, .footer li {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ff4081 !important;
    text-shadow: 0 0 5px rgba(255, 64, 129, 0.5);
}

/* IP Info Display */
.ip-info-display {
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #00bcd4;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.ip-info-display:hover {
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.ip-address {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #00bcd4;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.geo-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.geo-item {
    text-align: center;
    margin: 10px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    min-width: 150px;
    border: 1px solid rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
}

.geo-item:hover {
    border-color: #ff4081;
    box-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
}

.geo-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #00bcd4;
}

/* Map Container */
.map-container {
    height: 350px;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #00bcd4;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

/* DNS Lookup Styles */
.dns-record {
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #00bcd4;
    transition: all 0.3s ease;
}

.dns-record:hover {
    background-color: rgba(26, 26, 26, 0.9);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
    transform: translateX(5px);
}

.dns-record-type {
    font-weight: 600;
    color: #00bcd4;
    margin-bottom: 5px;
}

.dns-record-value {
    word-break: break-all;
}

/* Domain Age Check Section */
#domain-age-result {
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #00bcd4;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
}

#domain-age-result:hover {
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5), 0 0 10px rgba(255, 64, 129, 0.3);
}

.domain-age-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.domain-age-item {
    text-align: center;
    margin: 10px;
    flex: 1;
    min-width: 150px;
}

.domain-age-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00bcd4;
}

/* AI Mascot */
.ai-mascot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ai-mascot {
    display: flex;
    align-items: flex-end;
}

.ai-mascot-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00bcd4, #ff4081);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.7), 0 0 10px rgba(255, 64, 129, 0.5);
    transition: all 0.3s ease;
    z-index: 1001;
}

.ai-mascot-icon:hover {
    transform: scale(1.1);
}

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

.ai-mascot-bubble {
    background-color: rgba(26, 26, 26, 0.9);
    border-radius: 15px;
    padding: 15px;
    margin-right: 15px;
    max-width: 300px;
    border: 1px solid #00bcd4;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.ai-mascot-bubble:after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid rgba(26, 26, 26, 0.9);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.ai-mascot-bubble p {
    margin: 0;
    color: white;
    font-size: 0.9rem;
}

.hide {
    display: none;
}

/* Animation for Domain Age Check */
@keyframes domainAgeAnimation {
    0% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Neon Border Effect */
.neon-border {
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 10px;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #00bcd4, #ff4081);
    margin: -2px;
    border-radius: 12px;
    z-index: -1;
}

.neon-border-thin {
    height: 1px;
    background: linear-gradient(90deg, transparent, #00bcd4, #ff4081, transparent);
    margin: 20px 0;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 188, 212, 0.3);
    border-radius: 50%;
    border-top-color: #00bcd4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .ip-address {
        font-size: 1.5rem;
    }
    
    .geo-item {
        min-width: 120px;
        padding: 10px;
    }
    
    .map-container {
        height: 250px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .ai-mascot-container {
        bottom: 20px;
        right: 20px;
    }
    
    .ai-mascot-icon {
        width: 50px;
        height: 50px;
    }
    
    .ai-mascot-bubble {
        max-width: 220px;
        padding: 10px;
    }
}
