/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --text-color: #f8fafc;
    --muted-text: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.8);
    --gradient-start: #0f172a;
    --gradient-end: #1e293b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.domain-name {
    color: var(--text-color);
}

.domain-ext {
    color: var(--accent-color);
}

.current-time {
    font-size: 18px;
    color: var(--muted-text);
    font-weight: 300;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, #f0f9ff, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--muted-text);
    margin-bottom: 40px;
}

/* Pulse animation */
.pulse-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 40px auto;
}

.pulse-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* Visitor info section */
.visitor-info {
    margin-bottom: 80px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-color);
}

/* Desktop info cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Mobile info cards */
.info-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 10px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 200px;
}

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

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-color);
    margin-bottom: 20px;
}

.vpn-detected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.vpn-maybe {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.vpn-none {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.vpn-active {
    color: var(--danger-color);
    font-weight: 500;
}

.vpn-maybe {
    color: var(--warning-color);
    font-weight: 500;
}

.vpn-inactive {
    color: var(--success-color);
    font-weight: 500;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-content p {
    color: var(--muted-text);
    font-size: 16px;
}

/* Browser and device icons */
.browser-icon, .country-flag, .device-icon {
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 2px;
}

/* Links in the cards */
.info-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.info-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* About section */
.about {
    margin-bottom: 80px;
    position: relative;
}

.about p {
    max-width: 700px;
    margin-bottom: 40px;
    font-size: 18px;
    color: var(--muted-text);
}

/* Smart home graphic */
.smart-home-graphic {
    position: relative;
    height: 200px;
    margin: 60px 0;
}

.device {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.3);
    border: 2px solid var(--accent-color);
}

.device-1 {
    top: 20px;
    left: 15%;
}

.device-2 {
    top: 100px;
    left: 30%;
}

.device-3 {
    top: 50px;
    left: 70%;
}

.connection {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-color));
    height: 2px;
}

.connection-1 {
    width: 100px;
    top: 40px;
    left: 20%;
    animation: pulse-horizontal 2s infinite;
}

.connection-2 {
    width: 150px;
    top: 70px;
    left: 50%;
    animation: pulse-horizontal 3s infinite;
}

.hub {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    top: 60px;
    left: 45%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@keyframes pulse-horizontal {
    0% {
        opacity: 0;
        transform: scaleX(0.1);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--muted-text);
    font-size: 14px;
    position: relative;
}

/* Admin login button - make it clearly visible */
.admin-login-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.6);
    color: rgba(248, 250, 252, 0.9);
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
    z-index: 10;
}

.admin-login-button:hover {
    opacity: 1;
    background: rgba(59, 130, 246, 0.8);
}

/* Login modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fade-in 0.3s ease-out;
}

.login-modal {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scale-in 0.3s ease-out;
}

.login-modal h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.login-password {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 16px;
    outline: none;
}

.login-password:focus {
    border-color: var(--accent-color);
}

.login-error {
    color: var(--danger-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.login-submit, .login-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-submit {
    background-color: var(--accent-color);
    color: white;
    margin-right: 10px;
}

.login-submit:hover {
    background-color: #2563eb;
}

.login-cancel {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--muted-text);
}

.login-cancel:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Notification system */
#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: var(--card-bg);
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    min-width: 200px;
}

.notification.show {
    transform: translateX(0);
}

/* Keyframe animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .smart-home-graphic {
        display: none;
    }

    .card {
        width: 100%;
    }
    
    .info-cards-mobile {
        overflow-y: auto;
        max-height: 70vh;
        padding-right: 5px;
    }
}
